home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 9 / FM Towns Free Software Collection 9.iso / t_os / shell / igo / gosource / mdprint.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-16  |  2.0 KB  |  82 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. #include <winb.h>
  5. #include <te.h>
  6. #include <fntb.h>
  7. #include <gui.h>
  8. #include "banx.h"
  9. #include "kifuctrl.h"
  10.  
  11. int    print_dialogId = -1 ;
  12. int    print_numbox[3] = -1 ;
  13. int    print_bottonId[2] = -1 ;
  14.  
  15. /*    initDataMIPRINT:print_bottonId[0]:MJ_DBUTTONL40の呼び出し関数    */
  16. int    igo_printset(kobj, messId, argc, pev, trigger)
  17. int        kobj ;
  18. int        messId ;
  19. int        argc ;
  20. EVENT    *pev ;
  21. int        trigger ;
  22. {
  23.     int start_te, end_te, pstart_te;
  24.     int min, max, delta, ptColum; /* 使用していない */
  25.     int id;                       /* 印刷データID   */
  26.     
  27.     /*    数値入力パネルの読み取り    */
  28.     MMI_SendMessage(print_numbox[0], MM_GETNUMBOX, 5,
  29.                             &start_te, &min, &max, &delta, &ptColum) ;
  30.  
  31.     /*    数値入力パネルの読み取り    */
  32.     MMI_SendMessage(print_numbox[1], MM_GETNUMBOX, 5,
  33.                             &end_te, &min, &max, &delta, &ptColum) ;
  34.  
  35.     /*    数値入力パネルの読み取り    */
  36.     MMI_SendMessage(print_numbox[2], MM_GETNUMBOX, 5,
  37.                     &pstart_te, &min, &max, &delta, &ptColum);
  38.  
  39.     /*    スプーリング開始をスプーラに宣言し印刷データIDを取得します    */
  40.     if((id = SPL_start()) < 0){
  41.         return NOERR;
  42.     }
  43.  
  44.     if(kifu_print( start_te, end_te, pstart_te, 0) != 0){
  45.         /*        printf("priter_error \n"); */
  46.         ; /* 本来ならエラ-メッセ-ジを出す所 */
  47.     }
  48.  
  49.     /*    スプーリング終了をスプーラに宣言します   */
  50.     SPL_end( id );
  51.  
  52.     /*    print_dialogIdで示されるオブジェクトを消す        */
  53.     MMI_SendMessage( print_dialogId , MM_ERASE , 0 ) ;
  54.  
  55.     /*    オブジェクトをダイアログから取り外す    */
  56.     MMI_SendMessage( print_dialogId , MM_DETACH , 0 ) ;
  57.  
  58.     retunrInitMenuFunc();
  59.  
  60.     return NOERR ;
  61. }
  62.  
  63. /*    initDataMIPRINT:print_bottonId[1]:MJ_DBUTTONL40の呼び出し関数    */
  64. int    igo_printcancel(kobj, messId, argc, pev, trigger)
  65. int        kobj ;
  66. int        messId ;
  67. int        argc ;
  68. EVENT    *pev ;
  69. int        trigger ;
  70. {
  71.     /*    print_dialogIdで示されるオブジェクトを消す        */
  72.     MMI_SendMessage( print_dialogId , MM_ERASE , 0 ) ;
  73.  
  74.     /*    オブジェクトをダイアログから取り外す    */
  75.     MMI_SendMessage( print_dialogId , MM_DETACH , 0 ) ;
  76.  
  77.     retunrInitMenuFunc();
  78.  
  79.     return NOERR ;
  80. }
  81.  
  82.